import { axios } from '@/utils/request';

export function getLeftTopData(year) {
	return axios({
		url: '/jeecg-boot/app_group_time/getEvalution',
		method: 'get',
		params: {
			year,
		},
	});
}

export function getLeftBottomData(params) {
	return axios({
		url: '/jeecg-boot/app_group_time/pedotest',
		method: 'get',
		params: params,
	});
}
export function getCenterTopData(type) {
	return axios({
		url: '/jeecg-boot/app_group_time/pedoAndsleep',
		method: 'get',
		params: {
			type, // day week
		},
	});
}

export function getUserSevenDay(params) {
	return axios({
		url: '/jeecg-boot/app_group_time/getWeekUser',
		method: 'get',
		params,
	});
}

export function getCenterBottonData(type) {
	return axios({
		url: '/jeecg-boot/app_group_time/getinterve',
		method: 'get',
		params: {
			type, // day week
		},
	});
}

export function getWightData(year) {
	return axios({
		url: '/jeecg-boot/app_group_time/getWeightdetection',
		method: 'get',
		params: {
			year,
		},
	});
}

export function getDiseaseData(year) {
	return axios({
		url: '/jeecg-boot/app_group_time/getDiseaseCheck',
		method: 'get',
		params: {
			year,
		},
	});
}
